package com.qtest.qandroid.dao;

import com.qtest.qandroid.entity.Course;
import com.qtest.qandroid.entity.Result;
import com.qtest.qandroid.entity.SelectCourse;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;
@Mapper
@Repository
public interface CourseDao {
    List<Course> selectAllCourseFromOneStudent(String userId);

    Course isThereCorrectCode(@Param("joinNumber") String joinNumber,@Param("userId") String userId);

    void insertSelectCourse(@Param("userId") String userId,@Param("courseId") String courseId,@Param("name") String name);

    void createNewCourse(Course course);

    void deleteCourse(String courseId);

    void deleteCourse2(@Param("userId") String userId,@Param("courseId") String courseId);


}
